<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp" %>

<%
	request.setAttribute("modelConfigPath", "acti");
%>

<%@ include file="/WEB-INF/views/shared/master/index.jsp" %>
<t:form commandName="activitySearch" action="/admin/acti/activity/index" ajaxPost="true" onSuccess="onSuccess">
   <t:panel cssClass="panel-flat border-top-xlg border-top-primary" customBody="true" customHead="true">
      <t:panelHead title="活动列表"></t:panelHead>
      <div class="panel-body">
         <div class="row"> 
             <c:import url="input.jsp" />
         </div>
         <div id="tableContent" class="row" >
             <c:import url="output.jsp" />
         </div>
      </div>
   </t:panel>
</t:form>

<script type="text/javascript">
	$(function(){
		
	});
	

	function onSuccess(res){
		$("#tableContent").html(res);
		
		redrawTable();
	}
	function searchCallback(){
		formSubmit();
	}
	function pagerChangeCallback(){
		formSubmit();
	}
	function sortingCallback(){
		formSubmit();
	}
	function formSubmit(){
		$("form:first").submit();	
	}
	function onConfirm(id){
		   
		var url = $.getVirtualPath() + "/admin/acti/activity/toConfirm?id="+ id;
		var result=$.getJsonPost(url);
		alert(result.resultType);
		if(result.resultType=="success"){
			
			formSubmit();
		}
			$.topNotify(result.message,result.resultType);
	
	}
</script>
<%@ include file="/WEB-INF/views/shared/master/cntable.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared//master/contentFooter.jsp" %>